<div id="emptopositions_journal" class="stn_journal">
	<div class="stn_journal_title"><?php echo $title; ?></div>
	<div class="stn_journal_tools">
		<?php foreach($tools as $tool) { ?>
			<?php echo $tool; ?>
		<?php } ?>	
	</div>
	<div class="stn_journal_pagination">
		<?php echo $pagination; ?>
	</div>
	<div class="stn_journal_body">
		<?php
			$data = array("name"=>"emptopositions_activerecord",
							"id"=>"emptopositions_activerecord",
							"value"=>$activerecord?$activerecord:'',
							"type"=>'hidden'
							); 
			echo form_input($data);
		?>
		<table border="0" cellpadding="4" cellspacing="0" >
			<tr>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($rid, array('url'=>'emptopositions/srt/rid', 'update'=>'m_content')) ?>					
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($date_doc, array('url'=>'emptopositions/srt/date_doc', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($employeer_name, array('url'=>'emptopositions/srt/employeer_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($position_name, array('url'=>'emptopositions/srt/position_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($filial_name, array('url'=>'emptopositions/srt/filial_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($bdate, array('url'=>'emptopositions/srt/bdate', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($archive, array('url'=>'emptopositions/srt/archive', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote( $modifyDT, array('url'=>'emptopositions/srt/modifyDT', 'update'=>'m_content')) ?>
				</th>
			</tr>	
			<?php foreach($DS as $row) {?>
				<tr class="<?php echo ($row->rid == $activerecord)?'rowSel':''; ?>" 
					onclick="setActiveRecord('emptopositions', '<?php echo $row->rid?>');" 
					id="emptopositions_<?php echo $row->rid?>"
					ondblclick="setActiveRecord('emptopositions', '<?php echo $row->rid?>');emptopositions_edit();"
				>
					<td>
						<?php echo $row->rid; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->date_doc; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->employeer_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->position_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->filial_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->bdate; ?>&nbsp;
					</td>
					
					<td>
						<?php echo ($row->archive)?$yes:$no; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->modifyDT; ?>&nbsp;
					</td>
				</tr>
			<?php } ?>
		</table>
	</div>
</div>